<template>
  <div>
    {{ count }}
  </div>
  <button @click="addCount">点我</button>
</template>

<script setup lang="ts">
import { ref, onMount } from "vue";

const list = "ssss";

// onMount(() => {
//   list.push("xxx");
// });

const count = ref(1);
const addCount = () => {
  count.value++;
  list.push("ss");
};
</script>

<style scoped></style>
